# -*- encoding: utf-8 -*-
"""
@File : config
@Time : 2020/6/14 22:47
@Author : lryself
@Version : 1.0
@Contact : lnolvwe@163.com
"""
import os


class Config(object):
    basedir = os.path.abspath(os.path.dirname(__file__))

    # 数据库连接配置
    DIALECT = 'mysql'
    DRIVER = 'pymysql'
    USERNAME = 'root'
    PASSWORD = 'idealwifi@2019'
    HOST = '59.65.232.231'
    PORT = '13306'
    DATABASE = 'newspaper_order_sys'

    SQLALCHEMY_DATABASE_URI = '{}+{}://{}:{}@{}:{}/{}?charset=utf8mb4'.format(DIALECT, DRIVER, USERNAME, PASSWORD, HOST, PORT, DATABASE)
    SQLALCHEMY_TRACK_MODIFICATIONS = True

    # 表单保护
    # CSRF_ENABLED = True
    SECRET_KEY = "lryself"